package com.heima.wemedia.job;

import com.heima.wemedia.service.ReptilesArticleService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author huan
 * @serial 每天一百行, 致敬未来的自己
 * @Description
 */
@Component
@Log4j2
public class AuthPassWmNewsJob {
    @Autowired
    ReptilesArticleService reptilesArticleService;

    @XxlJob("authPassWmNewsJob")
    public ReturnT<String> authPassWmNews(String param) throws Exception {
        reptilesArticleService.authPassWmNews();
        return ReturnT.SUCCESS;
    }
}
